<?php
if (!$this->enableRegistration) {
    print "Registration is disabled";
    return;
}
$form = $this->registerForm;
$form->prepare();
$form->setAttribute('action', $this->url('zfcuser/register'));
$form->setAttribute('method', 'post');
$form->setAttribute('class', 'form-signin content-default');
$form->setAttribute('role', 'form');

?>

<div id="register-page" class="content-primary user-auth">
	<?php echo $this->form()->openTag($form) ?>
		<h2 class="form-signin-heading"><?php echo $this->translate('Create an account') ?></h2>
		<?php //foreach ($form as $element): ?>
			<?php //if (!$element instanceof Zend\Form\Element\Button): ?>
				<?php //echo $this->formLabel($element) ?>
			<?php //endif ?>
			<?php //if ($element instanceof Zend\Form\Element\Button): ?>
				<?php //echo $this->formButton($element) ?>
			<?php //elseif ($element instanceof Zend\Form\Element\Captcha): ?>
				<?php //echo $this->formCaptcha($element) . $this->formElementErrors($element) ?>
			<?php //else: ?>
				<?php //echo $this->formInput($element) . $this->formElementErrors($element) ?>
			<?php //endif ?>
		<?php //endforeach ?>
		<input type="text" name="display_name" class="form-control" placeholder="<?php echo $this->translate('Your name') ?>" required>
		<input type="text" name="username" class="form-control" placeholder="<?php echo $this->translate('Username') ?>" required>
		<input type="text" name="email" class="form-control" placeholder="<?php echo $this->translate('Email address') ?>" required>
		<input type="password" name="password" class="form-control" placeholder="<?php echo $this->translate('Password') ?>" required>
		<button class="btn btn-primary" type="submit"><?php echo $this->translate('Register on Yousheltr') ?></button>
		<span><?php echo $this->translate('or');?> 
			<a class="link" href="<?php echo $this->url('zfcuser/login') . ($this->redirect ? '?redirect='.$this->redirect : '') ?>">
					<?php echo $this->translate('Sign in'); ?>
			</a>
		</span>
		
		<?php if ($this->redirect): ?>
			<input type="hidden" name="redirect" value="<?php echo $this->escapeHtml($this->redirect) ?>" />
		<?php endif ?>
	<?php echo $this->form()->closeTag() ?>
</div>